package com.nbot.server.service.impl;

import com.nbot.server.domain.TransmissionDatasaveBySiten;
import com.nbot.server.domain.TransmissionDatasaveBySitenKey;
import com.nbot.server.mapper.fourth.TransmissionDatasaveBySitenMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.nbot.server.mapper.master.TransmissstationMapper;
import com.nbot.server.domain.TransmissstationDO;
import com.nbot.server.service.TransmissstationService;



@Service
public class TransmissstationServiceImpl implements TransmissstationService {
	@Autowired
	private TransmissstationMapper transmissstationMapper;
	@Autowired
	private TransmissionDatasaveBySitenMapper transmissionDatasaveBySitenMapper;
	
	@Override
	public TransmissstationDO get(String autoid){
		return transmissstationMapper.get(autoid);
	}
	
	@Override
	public List<TransmissstationDO> list(Map<String, Object> map){
		return transmissstationMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return transmissstationMapper.count(map);
	}
	
	@Override
	public int save(TransmissstationDO transmissstation){
		return transmissstationMapper.save(transmissstation);
	}
	
	@Override
	public int update(TransmissstationDO transmissstation){
		return transmissstationMapper.update(transmissstation);
	}
	
	@Override
	public int remove(String autoid){
		return transmissstationMapper.remove(autoid);
	}
	
	@Override
	public int batchRemove(String[] autoids){
		return transmissstationMapper.batchRemove(autoids);
	}

	@Override
	public TransmissionDatasaveBySiten getPlanProduction(TransmissionDatasaveBySitenKey stationKey) {
		return transmissionDatasaveBySitenMapper.selectByPrimaryKey(stationKey);
	}

}
